package com.eshop.eshop2021_v1.service;

import com.eshop.eshop2021_v1.common.JsonResult;
import com.eshop.eshop2021_v1.pojo.User;
import org.springframework.ui.Model;

import javax.servlet.http.HttpSession;

/**
 * @author: 若若叶
 * @date: 2021/10/6 9:10 FileName: UserService Description:
 */
public interface UserService {
  // 检查邮箱
  JsonResult checkedEmail(String email);
  // 执行注册
  JsonResult doReg(
      String email, String password, String comfirmPwd, String code, HttpSession session);

  // 登录
  String doLogin(User user, String code, HttpSession session, Model model);

  // 修改密码
  JsonResult doUpdatePwd(String password, String email);

  // 修改个人信息
  JsonResult updateByEmail(User user);
}
